<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	String path = request.getContentType();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	//pageContext.setAttribute("name","");
%>
<base href="<%=basePath%>" />
<head>
<!-- <style type="text/css">
	#ps,#pf,#es,#ef{
		display:none;
	}
</style> -->

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学生信息管理</title>
<link rel="stylesheet" type="text/css" href="css/login.css">
</head>
<script type="text/javascript">

</script>
<body>
	<div id="loginTop">
		<div id="welcome">
			欢迎登录学生信息管理系统
		</div>
		<div id="back">
			<a href="#">返回首页</a>&nbsp;&nbsp;｜&nbsp;&nbsp;
			<a href="http://www.baidu.com" target="_blank">帮助</a>
		</div>
	</div>
	
	<div id="loginCenter">
		<div id="loginForm">
			<form action="loginSer">
				<div id="loginTitle">系统登录</div>
				<input type="hidden" name="ope" value="login">
				<input type="text" id="loginName" name="loginName" value=""/>
				<br><span>${sessionScope.errorMsg}</span><br>
				<input type="password" id="pwd" name="pwd"/>
				<div id="btnArea">
					<input type="submit" value="登&nbsp;&nbsp;录"/>
					&nbsp;&nbsp;
					<input type="reset" value="重&nbsp;&nbsp;置"/>
				</div>
			</form>
		</div>
	</div>
	
	<div id="loginBottom">
		版权所有 2000-2017 使用前请月度 京IPC 8888888
	</div>
</body>
<%-- <body>
${sessionScope.errorMsg}<br/>
	<form action="loginSer" method="post">
		<input type="hidden" name="ope" value="login">
		账号:<input type="text" name="loginName" value ="${requestScope.loginName==null?'':loginName }"><br/>
		密码:<input type="password" name="pwd"/><br/>
		手机号码1：<input type="text" name="phone" id="phone"/><label id="ps">成功</label><label id="pf">失败</label><br/>
		邮箱地址：<input type="text" name="email" id="email"/><label id="es">成功</label><label id="ef">失败</label><br/>
		<input type="submit"/><input type="reset"/>
	</form>
</body>
<script type="text/javascript">
	//var pReg = new RegExp("^1[34578]\d{9}$");//手机号验证
	var pReg = /^1[34578]\d{9}$/;
	var eReg = /^\w{2,18}@[1-9a-z]{2,6}\.[a-z]{2,3}$/;//邮箱验证
	$("phone").onblur=testP;
	$("email").onblur=testE;
	function testP(){
		//alert("测试结果："+pReg.test($("phone").value)+";测试内容："+$("phone").value);
		if(pReg.test($("phone").value)){
			$("ps").style.display="block";
			$("pf").style.display="none";
		}else{
			$("ps").style.display="none";
			$("pf").style.display="block";
		}
	}
	function testE(){
		//alert("测试结果："+eReg.test($("email").value)+";测试内容："+$("email").value);
		if(pReg.test($("email").value)){
			$("es").style.display="block";
			$("ef").style.display="none";
		}else{
			$("es").style.display="none";
			$("ef").style.display="block";
		}
	}
	function $(id){
		return document.getElementById(id);
	}
	
</script> --%>
</html>